Fix the registration of the grid-lines property (#345456, Murray Cumming)
authorMatthias Clasen <mclasen@redhat.com>
Wed, 21 Jun 2006 15:04:44 +0000 (15:04 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 21 Jun 2006 15:04:44 +0000 (15:04 +0000)
2006-06-21  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_class_init): Fix the registration
of the grid-lines property  (#345456, Murray Cumming)

ChangeLog
ChangeLog.pre-2-10
gtk/gtktreeview.c

index 21cc84098de9cb2fc43ac159e11dab5595d9d18a..342e0ad120fd1c503dc1932e58c694d4e1ff5d80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-21  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix the registration
+       of the grid-lines property  (#345456, Murray Cumming) 
+       
 2006-06-21  Kristian Rietveld  <kris@imendio.com>
 
        Allocate space for the grid lines when they are enabled.
index 21cc84098de9cb2fc43ac159e11dab5595d9d18a..342e0ad120fd1c503dc1932e58c694d4e1ff5d80 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-21  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix the registration
+       of the grid-lines property  (#345456, Murray Cumming) 
+       
 2006-06-21  Kristian Rietveld  <kris@imendio.com>
 
        Allocate space for the grid lines when they are enabled.
index 77f65fd66d5f28a2e05013371a8a3647a785aa95..cf4be7fce0ad4a9d72da6745085a47c5fcce83f3 100644 (file)
@@ -713,11 +713,12 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
 
     g_object_class_install_property (o_class,
                                      PROP_ENABLE_GRID_LINES,
-                                     g_param_spec_boolean ("enable-grid-lines",
-                                                           P_("Enable Grid Lines"),
-                                                           P_("Whether grid lines should be drawn in the tree view"),
-                                                           FALSE,
-                                                           GTK_PARAM_READWRITE));
+                                     g_param_spec_enum ("enable-grid-lines",
+                                                       P_("Enable Grid Lines"),
+                                                       P_("Whether grid lines should be drawn in the tree view"),
+                                                       GTK_TYPE_TREE_VIEW_GRID_LINES,
+                                                       GTK_TREE_VIEW_GRID_LINES_NONE,
+                                                       GTK_PARAM_READWRITE));
 
     g_object_class_install_property (o_class,
                                      PROP_ENABLE_TREE_LINES,
@@ -1381,7 +1382,7 @@ gtk_tree_view_set_property (GObject         *object,
       tree_view->priv->rubber_banding_enable = g_value_get_boolean (value);
       break;
     case PROP_ENABLE_GRID_LINES:
-      gtk_tree_view_set_grid_lines (tree_view, g_value_get_boolean (value));
+      gtk_tree_view_set_grid_lines (tree_view, g_value_get_enum (value));
       break;
     case PROP_ENABLE_TREE_LINES:
       gtk_tree_view_set_enable_tree_lines (tree_view, g_value_get_boolean (value));
@@ -1452,7 +1453,7 @@ gtk_tree_view_get_property (GObject    *object,
       g_value_set_boolean (value, tree_view->priv->rubber_banding_enable);
       break;
     case PROP_ENABLE_GRID_LINES:
-      g_value_set_boolean (value, tree_view->priv->grid_lines);
+      g_value_set_enum (value, tree_view->priv->grid_lines);
       break;
     case PROP_ENABLE_TREE_LINES:
       g_value_set_boolean (value, tree_view->priv->tree_lines_enabled);